#!/bin/bash

objects=

for a in *.cpp; do
    objects+=$(echo $a | sed 's:\.cpp$:.o:')
done

sed -e "s:OBJS=.*:OBJS=$objects:" -i Makefile